class BugListDownloadsController < ApplicationController
  # GET /bug_list_downloads
  # GET /bug_list_downloads.xml
  def index
    @bug_list_downloads = BugListDownloads.find(:all)

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @bug_list_downloads }
    end
  end

  # GET /bug_list_downloads/1
  # GET /bug_list_downloads/1.xml
  def show
    @bug_list_downloads = BugListDownloads.find(params[:id])

    respond_to do |format|
      format.html # show.html.erb
      format.xml  { render :xml => @bug_list_downloads }
    end
  end

  # GET /bug_list_downloads/new
  # GET /bug_list_downloads/new.xml
  def new
    @bug_list_downloads = BugListDownloads.new

    respond_to do |format|
      format.html # new.html.erb
      format.xml  { render :xml => @bug_list_downloads }
    end
  end

  # GET /bug_list_downloads/1/edit
  def edit
    @bug_list_downloads = BugListDownloads.find(params[:id])
  end

  # POST /bug_list_downloads
  # POST /bug_list_downloads.xml
  def create
    @bug_list_downloads = BugListDownloads.new(params[:bug_list_downloads])

    respond_to do |format|
      if @bug_list_downloads.save
        flash[:notice] = 'BugListDownloads was successfully created.'
        format.html { redirect_to(@bug_list_downloads) }
        format.xml  { render :xml => @bug_list_downloads, :status => :created, :location => @bug_list_downloads }
      else
        format.html { render :action => "new" }
        format.xml  { render :xml => @bug_list_downloads.errors, :status => :unprocessable_entity }
      end
    end
  end

  # PUT /bug_list_downloads/1
  # PUT /bug_list_downloads/1.xml
  def update
    @bug_list_downloads = BugListDownloads.find(params[:id])

    respond_to do |format|
      if @bug_list_downloads.update_attributes(params[:bug_list_downloads])
        flash[:notice] = 'BugListDownloads was successfully updated.'
        format.html { redirect_to(@bug_list_downloads) }
        format.xml  { head :ok }
      else
        format.html { render :action => "edit" }
        format.xml  { render :xml => @bug_list_downloads.errors, :status => :unprocessable_entity }
      end
    end
  end

  # DELETE /bug_list_downloads/1
  # DELETE /bug_list_downloads/1.xml
  def destroy
    @bug_list_downloads = BugListDownloads.find(params[:id])
    @bug_list_downloads.destroy

    respond_to do |format|
      format.html { redirect_to(bug_list_downloads_url) }
      format.xml  { head :ok }
    end
  end
end
